dm: power: Add regulator flags to centralise auto-set logic
authorSimon Glass <[email protected]>
Tue, 23 Jun 2015 21:38:57 +0000 (15:38 -0600)
committerSimon Glass <[email protected]>
Tue, 21 Jul 2015 23:39:26 +0000 (17:39 -0600)
commit7837ceab1ef8d4a88fb218bfa6b042b0b865b15f
treef05380c28bf5c0e119553a25482de6aa7d9db485
parent23ec2b570d948519109c284eddd14146c84d1f62
dm: power: Add regulator flags to centralise auto-set logic

Decide when the regulator is set up whether we want to auto-set the voltage
or current. This avoids the complex logic spilling into the processing code.

Signed-off-by: Simon Glass <[email protected]>
Tested-by: Przemyslaw Marczak <[email protected]>
Acked-by: Przemyslaw Marczak <[email protected]>
drivers/power/regulator/regulator-uclass.c
include/power/regulator.h